Ext.define('Admin.view.tree.NaviTree', {
	        extend : 'Ext.tree.Panel',
	        xtype : 'xnavitree',

	        scrollable : true,
	        rootVisible : false,

	        listeners : {
		        select : 'onNaviTreeSelect',
		        activate : function(me, eOpts) { // TODO 选中相同节点
			        var selected = me.getSelection(), navitab = me.ownerCt;
			        if (navitab.isLayoutSuspended()) {
				        return;
			        }
			        if (0 == selected.length) {
				        var root = me.getRootNode(), child = root.firstChild;
				        child && selected.push(child);
				        if (0 < selected.length) {
					        var selector = me.getSelectionModel();
					        selector.select(selected[0]);
				        }
			        } else {
				        me.fireEvent('select', me, selected[0]);
			        }
		        },

		        load : function(store, records, successful, operation, node, eOpts) {
			        var me = this;
			        if (successful && 0 === node.data.id && me.isVisible() && 0 < records.length) {
				        me.getSelectionModel().select(0);
			        }
		        }
	        }
        });